﻿namespace LxCore
{
    public enum ScalarFieldTypes
    {
        //scalar是只在cell或只在face或都行，通过scalarfinder返回是否是null来判断，这里不加判断
        Temperature,
        Pressure,
        Density,
        BoundAdjacentCellPressure,
        PressureCorrection, MassImbalance, Velocity, Vel_U, Vel_V, Vel_W, Turb_k, Turb_w, WallDistance,
        CellIndex, FaceIndex, CellVolumn, FaceArea, BoundAdjacentCellIndex, BoundRadiationHeatFlux,
    }
    //public static class ScalarTypeHelper
    //{
    //    public static (bool isCellAvaliable, bool isFaceAvaliable) GetAvaliablity(ScalarFieldTypes scalarType)
    //    {
    //        switch (scalarType)
    //        {
    //            case ScalarFieldTypes.Temperature:
    //            case ScalarFieldTypes.Pressure:
    //            case ScalarFieldTypes.Velocity:
    //            case ScalarFieldTypes.Vel_U:
    //            case ScalarFieldTypes.Vel_V:
    //            case ScalarFieldTypes.Vel_W:
    //                return (true, true);
    //            case ScalarFieldTypes.PressureCorrection:
    //            case ScalarFieldTypes.MassImbalance:
    //            case ScalarFieldTypes.WallDistance:
    //            case ScalarFieldTypes.CellIndex:
    //            case ScalarFieldTypes.CellVolumn:
    //                return (true, false);//仅存在于Cell
    //            case ScalarFieldTypes.FaceIndex:
    //            case ScalarFieldTypes.FaceArea:
    //                return (false, true);//仅存在于Face
    //            default:
    //                return (false, false);
    //        }
    //    }
    //}
}